
class News:
    def __init__(self, news_from, title, url, url_id) -> None:
        self.news_from = news_from
        self.url = url
        self.title = title
        self.url_id = url_id

    def getTitle(self):
        return self.title

    def getUrl(self):
        return self.url

    def getUrlId(self):
        return self.url_id

    def getNewsFrom(self):
        return self.news_from